Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Types and Constants


Appearance-Compliant Menu Bar Draw State Constants

NEW WITH THE APPEARANCE MANAGER

You can pass one of the following constants in the inState parameter of DrawThemeMenuBarBackground to specify whether Appearance-compliant menu bars are drawn as normal or selected.

enum{
   kThemeMenuBarNormal   = 0,
   kThemeMenuBarSelected = 1
};
typedef SInt16 ThemeMenuBarState;

Constant descriptions

kThemeMenuBarNormal
Menu bar is drawn in its normal state.
kThemeMenuBarSelected
Menu bar is drawn in its selected state.
If you wish the menu bar to be drawn with square upper corners (as for a laptop system) instead of rounded ones (as for a desktop system), your application should set the bit for the attribute kThemeMenuSquareMenuBar.

enum {
   kThemeMenuSquareMenuBar= (1 << 0)
};

Constant descriptions

kThemeMenuSquareMenuBar
Menu bar is drawn with square corners.
SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before using the ThemeMenuBarState type or the Appearance-compliant menu bar draw state constants. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998